import React, { Component } from 'react'

export default class Home extends Component {

    render() {
        console.log('this-home', this);
        return (
            <div>
                <p><button onClick={() => {
                    console.log('this-home', this)
                    // 返回上一页
                    this.props.history.go(-1)
                }}>返回上一页</button></p>
                <p>我是首页</p>
            </div>
        )
    }
}
